Skip to content

Conversation

npabisz
Copy link
Contributor

@npabisz npabisz commented Jul 17, 2025

This PR add more flexibility to the library allowing to use custom HTTP clients, like Guzzle. There is also simple GuzzleAdapter added so developers don't need to write their own and start using package right away. By dafault it still uses cURL , however its wrapped in CurlAdapter. Both are implementing HttpClient interface.

$client = new GuzzleHttp\Client();
$config = array(
    // ...  
    'HttpClient' => new PHPShopify\GuzzleAdapter($client)
);

PHPShopify\ShopifySDK::config($config);

@npabisz
Copy link
Contributor Author

npabisz commented Jul 17, 2025

@tareqtms please have a look :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant